/*
 * @Author: Troubadour 2276791354@qq.com
 * @Date: 2024-08-18 10:37:36
 * @LastEditors: Troubadour 2276791354@qq.com
 * @LastEditTime: 2024-08-18 10:39:28
 * @Version:
 * @Description:
 */

#ifndef __BSP_TYPE_H__
#define __BSP_TYPE_H__

/*-------------------------------------------------------------------------------------------------------------------------------------
-                                                  Include file                                                                       -
--------------------------------------------------------------------------------------------------------------------------------------*/
#include "main.h"

/*-------------------------------------------------------------------------------------------------------------------------------------
-                                                  External macro                                                                     -
--------------------------------------------------------------------------------------------------------------------------------------*/


/*-------------------------------------------------------------------------------------------------------------------------------------
-                                                  External enum                                                                      -
--------------------------------------------------------------------------------------------------------------------------------------*/


typedef enum
{
    EN_GPIO_CTRL_CS = 0,        /* Control CS pin.  0: Select device    1: Release device. */
    EN_GPIO_CTRL_DC,            /* Control DC pin.  0: write command,   1: write data. */
    EN_GPIO_CTRL_RST,           /* Control RST pin. 0: No reset,        1: Reset */
    EN_GPIO_CTRL_BK,            /* Control Back light pin. 0: OFF,      1: ON */
} EN_GPIO_CTRL_TYPE;

typedef enum
{
    EN_SPI_CFG_SPEED = 0,       /* Configure SPI speed. Unit: 1Hz */
    EN_SPI_CFG_MODE,            /* Configure SPI mode. 0: Mode 0, 1: Mode 1, 2: Mode 2, 3: Mode 3 */
} EN_SPI_CFG_TYPE;
/*-------------------------------------------------------------------------------------------------------------------------------------
-                                                  External structure                                                                 -
--------------------------------------------------------------------------------------------------------------------------------------*/


/*-------------------------------------------------------------------------------------------------------------------------------------
-                                                  External variables                                                                 -
--------------------------------------------------------------------------------------------------------------------------------------*/


/*-------------------------------------------------------------------------------------------------------------------------------------
-                                                  External function                                                                  -
--------------------------------------------------------------------------------------------------------------------------------------*/

#endif  /* __BSP_TYPE_H__ */
